export const dataTypeData = [
	{
		label: '整数',
		options: [
			{ label: 'integer()-i32-int/integer', 								value: 'integer()' },
			{ label: 'unsigned()-u32-int unsigned', 							value: 'unsigned()' },
			
			{ label: 'tiny_integer()-i8(-128 ~ 127)-tinyint', 					value: 'tiny_integer()' },
			{ label: 'tiny_unsigned()-u8(255)-tinyint unsigned', 				value: 'tiny_unsigned()' },
			
			{ label: 'small_integer()-i16(-32768 ~ 32767)-smallint', 			value: 'small_integer()' },
			{ label: `small_unsigned()-u16(${32767 * 2})-smallint unsigned`, 	value: 'small_unsigned()' },
			
			{ label: 'big_integer()-i64-bigint', 								value: 'big_integer()' },
			{ label: `big_unsigned()-u64-bigint unsigned`, 						value: 'big_unsigned()' }
		]
	},
	{
		label: '小数',
		options: [
			{ label: 'decimal()-Decimal-decimal(10,0)', 						value: 'decimal()' },
			{ label: `decimal_len(n)-Decimal-decimal(n,2)`, 					value: 'decimal_len' },
			{ label: 'float()-f32-float', 										value: 'float()' },
			{ label: `double()-f64-double`, 									value: 'double()' }
		]
	},
	{
		label: '文本',
		options: [
			{ label: 'string()-String-varchar(255)', 							value: 'string()' },
			{ label: 'string_len(n)-String -varchar(n)', 						value: 'string_len' },
			{ label: 'char()-String-char', 										value: 'char()' },
			{ label: 'char_len(n)-String-char(n)', 								value: 'char_len' },
			{ label: 'text()-String-text', 										value: 'text()' }
		]
	},
	{
		label: 'blob',
		options: [
			{ label: 'blob(n)-Vec<u8>-binary(n)', 								value: 'binary' },
			{ label: 'blob(BlobSize::Tiny)-Vec<u8>-tinyblob', 					value: 'blob( BlobSize::Tiny )' },
			{ label: 'blob(BlobSize::Medium)-Vec<u8>-mediumblob', 				value: 'blob( BlobSize::Medium )' },
			{ label: 'blob(BlobSize::Long)-Vec<u8>-longblob', 					value: 'blob( BlobSize::Long )' },
			{ label: 'uuid()-Vec<u8>-binary(16)', 								value: 'uuid()' },
			
			{ label: 'binary()-Vec<u8>-blob()', 								value: 'binary()' },
			{ label: 'binary_len(n)-Vec<u8>-binary(n)', 						value: 'binary_len' },
			{ label: 'var_binary(n)-Vec<u8>-var_binary(n)', 					value: 'var_binary' }
		]
	},
	{
		label: '布尔值',
		options: [
			{ label: 'boolean()-i8-boolean', 						value: 'boolean()' },
		]
	},
	{
		label: 'json',
		options: [
			{ label: 'json()-Json-json', 							value: 'json()' },
			{ label: 'json_binary()-Json-json',  					value: 'json_binary()' }
		]
	},
	{
		label: '时间',
		options: [
			{ label: 'date()-Date-date', 							value: 'date()' },
			{ label: 'date_time()-DateTimeUtc-date_time', 			value: 'date_time()' },
			{ label: 'timestamp()-DateTimeUtc-timestamp', 			value: 'timestamp()' },
			{ label: 'time()-Time-time()', 							value: 'time( )' },
			{ label: 'year(n)-MySqlYear-year(n)', 					value: 'year' }
		]
	},
] 
export const keyData = [
	{ label:'primary_key',  value: 'primary_key()' },
	{ label:'unique_key', value: 'unique_key()' }
]